import RPi.GPIO as GPIO

class GPIOController:
    def setup(self, pin: int):
        """初始化引脚"""
        GPIO.setup(pin, GPIO.OUT)

    def set_high(self, pin: int):
        """设置高电平"""
        GPIO.output(pin, GPIO.HIGH)